FROM openjdk:11
LABEL maintainer="Jacky.Cui"
LABEL version="1.0"
VOLUME /tmp
ADD target/chaos-auth-gateway.jar app.jar
ARG active=base,prod
ENV active ${active}
ENV TimeZone=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone
ENTRYPOINT ["java", "-jar", "app.jar","--spring.profiles.active=${active}"]
EXPOSE 8888